package engine

import (
	"github.com/gin-gonic/gin"
	"hotMoney/controller"
	"hotMoney/service"
)



func RewardEngine() *gin.Engine {
	r := gin.New()
	reward := r.Group("/api/reward")
	{
		reward.POST("/getRewards", controller.GetRewardInfo)
		reward.POST("/reward/money", controller.RewardMoney)
	}
	go service.UpdateUserAmountInfo()
	return  r
}
